package com.demo2do.fms.admin.service.data;

import java.util.List;

import com.demo2do.core.entity.page.Page;
import com.demo2do.fms.admin.service.DataService;
import com.demo2do.fms.entity.authority.Organization;
import com.demo2do.fms.entity.data.cost.DriverSalary;

/**
 * 
 * @author Chang Liu
 */
public interface DriverSalaryService extends DataService<DriverSalary> {
    
    /**
     * count driver_salary by orgIds
     * 
     * @param orgIds
     * @return
     */
    public int count(List<Long> orgIds);

    /**
     * 司机工资单价管理  过滤查询 - 公司多选
     * 
     * @param orgIds
     * @param page
     * @return
     */
    public List<DriverSalary> list(List<Long> orgIds, Page page);
    
    /**
     * 根据公司id和司机人数得到司机
     * 
     * @param orgId
     * @param driverCount
     * @return
     */
    public DriverSalary getDriverSalary(Long orgId , Integer driverCount);
    
    /**
     * 
     * @param operator
     * @param organization
     * @param driverCount
     * @param driverSalary
     */
    public void create(Long operator , Organization organization, Integer driverCount ,DriverSalary driverSalary);

}
